package com.company.project.search.engine;

import com.company.project.search.entity.Search;

import java.util.List;
import java.util.Set;

public final class Result {
    public int flag;
    public String msg;
    public Param p;
    public Set<Header> headers;
    public List<Search> list;

    public Result(Param _p) {
        this.p = _p;
    }

    public Result() {

    }

    public static final class Header extends EngineTag {

        public int maxPage;
        public int totalCount;

        @Override
        public String toString() {
            return "Header{" +
                    "engine=" + engine +
                    ", engineName='" + engineName + '\'' +
                    ", maxPage=" + maxPage +
                    ", totalCount=" + totalCount +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "Result{" +
                "p=" + p +
                ", list=" + list +
                '}';
    }
}
